package com.onlyMe.view.world.components.base
{
	import com.flesler.componentas.core.base.BaseComponent;
	import com.flesler.componentas.core.Entity;
	import com.onlyMe.base.BasicComponent;
	import com.onlyMe.view.world.objects.IsleObjectView;
	import com.onlyMe.world.objects.IsleObject;
	import com.qb9.flashlib.utils.ClassUtil;
	
	/**
	 * @author ariel
	 */
	public class BaseIsleComponentView extends BasicComponent
	{
		public function BaseIsleComponentView()
		{
		}
		
		override public function registerTo(entity:Entity):void
		{
			super.registerTo(entity);
			
			createLogger(object.type + 'View > ' + ClassUtil.getName(this)); 
		}
		
		public function get object():IsleObject
		{
			return view.object;
		}
		
		public function get view():IsleObjectView
		{
			return entity as IsleObjectView;
		}
		
	}

}
